package com.ky.user.service;

import com.ky.common.param.UserLogin;
import com.ky.common.vo.R;
import com.ky.user.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ky.common.param.UserAdd;
import org.springframework.web.bind.annotation.RequestBody;


import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author wgz
 * @since 2024-06-17
 */
public interface UserService extends IService<User> {

    R loginCode(UserLogin userLogin);

    R loginPass(UserLogin userLogin);

    R register(HttpServletRequest request, UserAdd userAdd);
    User selectUser(int userId);

    R logout(String token);
    public R findAllFollows();

    R findByMapFollows(String username);

    R findById(Integer id);
   R saveUser(@RequestBody User user,HttpServletRequest request);

    R updatePassword(User user,HttpServletRequest request);

    R updatePhone(User user, HttpServletRequest request);
}
